package com.jash.qiushi;

import android.app.Application;
import android.support.v4.view.ViewCompat;

import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

public class BaseApplication extends Application {
    private HttpService service;

    @Override
    public void onCreate() {
        super.onCreate();
        service = new Retrofit.Builder()
                .baseUrl("http://m2.qiushibaike.com/")
                .addConverterFactory(GsonConverterFactory.create())
                .build()
                .create(HttpService.class);
    }

    public HttpService getService() {
        return service;
    }
}
